package com.aaa.controller;

import com.aaa.commen.entity.Result;
import com.aaa.service.IEvaluateLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/evaluateLevel")
public class EvaluateLevelController {

    @Autowired
    private IEvaluateLevelService evaluateLevelService;

    /**
     * 查询所有评价等级
     * @return
     */
    @GetMapping("listLevel")
    public Result queryEvaluateLevel(){
        return evaluateLevelService.queryLevel();
    }
}

